package pro.lepers.portfolio.view.contents.portfolio.data.contents {
	import pro.lepers.portfolio.view.contents.portfolio.content.TextContent;
	import pro.lepers.portfolio.view.contents.portfolio.content.ThumbContent;

	/**
	 * @author Pierre Lepers
	 */
	public class TextContentData extends AbstractContentData {
		
		public function get title () : String {
			return _title;
		}
		
		public function get desc () : String {
			return _desc;
		}
		
		public function TextContentData() {
			
		}

		override internal function _parse(datas : XML) : void {
			super._parse( datas );
			
			_title = datas.title.text();
			_desc = datas.desc.text();
		}
		
		
		override public function getView() : ThumbContent {
			return new TextContent( this );
		}
		
		
		private var _title : String;
		private var _desc : String;
	}
}
